<table class="imgtable">
    
    <thead>
    <tr>
    <th width="100px;">ID</th>
    <th>缩略图</th>
    <th>商品名称</th>
    <th>价格</th>
    <th>库存</th>
    <th>点击次数</th>
    <th>货号</th>
    <!--<th>状态</th>-->
    <th>操作</th>
    </tr>
    </thead>
    
    <tbody>
    <foreach from="$goods" key="$key" value="$val">
    <tr>
    <td class="imgtd">{$val.gid}</td>
    <td ><img src="__ROOT__/{$val.goods_listimg}" style="margin:0" width="50" height="50" alt="" /></td>
    <td style="padding:5px 0;"><a href="#">{$val.goods_name}</a><p>发布时间：{$val.goods_uptime|date:'Y-m-d H:i:s',@@}</p></td>
    <td>商城价: {$val.shop_price}<p>市场价:<span style="display:inline;text-decoration:line-through; ">{$val.goods_market}</span></p></td>
    <td>{$val.goods_count}</td>
    <td>{$val.goods_click}</td>
    <td>{$val.goods_sn}</td>
    
    <td>
    	
    	<a href="{|U:'GoodsList/index',array('gid'=>$val['gid'])}" class="hd-btn hd-btn-primary hd-btn-sm" style="display: inline;">库存列表</a> <a href="{|U:'Goods/editGoods',array('gid'=>$val['gid'])}" class="hd-btn hd-btn-success hd-btn-sm" style="display: inline;" >修改</a> <a href="javascript:delGoods({$val.gid})" class="hd-btn hd-btn-danger hd-btn-sm" style="display: inline;" >删除</a></td>
   
    </tr>
     </foreach>
    
    </tbody>
    
    </table>